package org.neuedu.service;

import org.neuedu.bean.Collect;
import org.neuedu.dao.CollectDao;
import org.neuedu.dao.CollectDaoImpl;

import java.util.List;

public class CollectServiceImpl implements CollectService {
    CollectDao collectDao = new CollectDaoImpl();

    @Override
    public int serchCollectArticleByAid(Integer aid) {
        int i = collectDao.serchCollectArticleByAid(aid);
        return i;
    }

    @Override
    public int updateCollectArticle(Integer aid, Integer uid) {
        int i = collectDao.updateCollectArticle(aid,uid);
        return i;
    }

    @Override
    public int serchCollectArticleByUid(Integer id) {
        int i = collectDao.serchCollectArticleByUid(id);
        return i;
    }

    @Override
    public List<Collect> serchCollectArticle(Integer id) {
        List<Collect> list = collectDao.serchCollectArticle(id);
        return list;
    }
}
